package com.ruoyi.biz.api.organization;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.biz.api.organization.factory.RemoteCompanyFallbackFactory;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import static com.ruoyi.biz.api.constants.Constants.HOST;

@FeignClient(name = "remoteCompanyService", url = HOST, fallback = RemoteCompanyFallbackFactory.class)
public interface RemoteCompanyService {

    @PostMapping("/api/v1/organization/company/add")
    R add(@RequestBody JSONObject jsonObject);

}
